﻿<%@ Page Language="C#" MasterPageFile="MasterPage.master" CodeFile="modify.aspx.cs" Inherits="vboard_membership_modify" %>

<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder" Runat="Server">
	<div class="Title"><%= GetLocalResourceObject("Title").ToString()%></div>

	<div class="ControlForm">
		<asp:Panel ID="PasswordCheckPanel" runat="server"
			DefaultButton="PasswordCheckButton">
			<div class="Content"><%= GetLocalResourceObject("CheckPasswordContent").ToString()%></div>

			<dl class="VGlobal_FormFieldDL60">
				<dt>
					<asp:Label ID="PasswordLabel" runat="server"
						Text="<%$ Resources:PasswordLabel %>"
						AssociatedControlID="PasswordTextBox" />
				</dt>
				<dd>
					<asp:TextBox ID="PasswordTextBox" runat="server"
						TextMode="Password"
						Columns="30"
						MaxLength="200"
						CssClass="VWebGlobal_TextBox"
						ValidationGroup="PasswordCheck" />
					<asp:RequiredFieldValidator ID="PasswordTextBoxRequiredFieldValidator" runat="server"
						Display="None"
						ControlToValidate="PasswordTextBox"
						ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_Password_Insert %>"
						ValidationGroup="PasswordCheck"
						SetFocusOnError="true" />
					<ajaxToolkit:ValidatorCalloutExtender ID="PasswordTextBoxRequiredFieldValidatorCalloutExtender" runat="Server"
						TargetControlID="PasswordTextBoxRequiredFieldValidator"
						CssClass="VWebGlobal_Validatorcallout"
						Width="250px"
						HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
				</dd>

				<dt></dt>
				<dd>
					<asp:Button ID="PasswordCheckButton" runat="server"
						OnClick="PasswordCheckButton_Click"
						Text="<%$ Resources:PasswordCheckButton %>"
						ValidationGroup="PasswordCheck" />
				</dd>
			</dl>
		</asp:Panel>

		<asp:Panel ID="ModifyPanel" runat="server" Visible="false">
			<dl class="VGlobal_FormFieldDL140">
				<dt><%= GetLocalResourceObject("CreationDateLabel").ToString() %></dt>
				<dd><asp:Label ID="CreationDate" runat="server" /></dd>

				<dt><%= GetLocalResourceObject("LastLoginDateLabel").ToString() %></dt>
				<dd><asp:Label ID="LastLoginDate" runat="server" /></dd>

				<dt><%= GetLocalResourceObject("LastPasswordChangedDateLabel").ToString() %></dt>
				<dd><asp:Label ID="LastPasswordChangedDate" runat="server" /></dd>
			</dl>
			<ajaxToolkit:Accordion ID="MyAccordion" runat="Server"
				SelectedIndex="0"
				TransitionDuration="150"
				FramesPerSecond="30"
				HeaderCssClass="AccordionHeader"
				HeaderSelectedCssClass="AccordionHeaderSelected"
				ContentCssClass="AccordionContent">
				<Panes>
					<ajaxToolkit:AccordionPane runat="server">
						<Header><%= GetLocalResourceObject("BasicPane").ToString()%></Header>
						<Content>
							<asp:Panel ID="BasicModifyPanel" runat="server"
								DefaultButton="BasicModifyButton">
								<dl class="VGlobal_FormFieldDL100">
									<dt>
										<asp:Label ID="EmailLabel" runat="server"
											Text="<%$ Resources:EmailLabel %>"
											AssociatedControlID="EmailTextBox" />
									</dt>
									<dd>
										<asp:TextBox ID="EmailTextBox" runat="server"
											Columns="30"
											MaxLength="200"
											CssClass="VWebGlobal_TextBox"
											ValidationGroup="Basic" />
										<asp:RequiredFieldValidator ID="EmailTextBoxRequiredFieldValidator" runat="server"
											Display="None"
											ControlToValidate="EmailTextBox"
											ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_Email_Insert %>"
											ValidationGroup="Basic"
											SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="EmailTextBoxRequiredFieldValidatorCalloutExtender" runat="Server"
											TargetControlID="EmailTextBoxRequiredFieldValidator"
											CssClass="VWebGlobal_Validatorcallout"
											Width="250px"
											HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
										<asp:RegularExpressionValidator ID="EmailTextBoxRegularExpressionValidator" runat="server"
											Display="None"
											ControlToValidate="EmailTextBox"
											ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_Email_Check %>"
											ValidationExpression="<%$ Resources:VGlobalResources, General_Expression_Email %>"
											ValidationGroup="Basic"
											SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="EmailTextBoxRegularExpressionValidatorCalloutExtender" runat="Server"
											TargetControlID="EmailTextBoxRegularExpressionValidator"
											CssClass="VWebGlobal_Validatorcallout"
											Width="250px"
											HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
									</dd>

									<dt>
										<asp:Label ID="ConfirmEmailLabel" runat="server"
											Text="<%$ Resources:ConfirmEmailLabel %>"
											AssociatedControlID="ConfirmEmailTextBox" />
									</dt>
									<dd>
										<asp:TextBox ID="ConfirmEmailTextBox" runat="server"
											Columns="30"
											MaxLength="200"
											CssClass="VWebGlobal_TextBox"
											ValidationGroup="Basic" />
										<asp:RequiredFieldValidator ID="ConfirmEmailTextBoxRequiredFieldValidator" runat="server"
											Display="None"
											ControlToValidate="ConfirmEmailTextBox"
											ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_Email_Confirm_Insert %>"
											ValidationGroup="Basic"
											SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="ConfirmEmailTextBoxRequiredFieldValidatorCalloutExtender" runat="Server"
											TargetControlID="ConfirmEmailTextBoxRequiredFieldValidator"
											CssClass="VWebGlobal_Validatorcallout"
											Width="250px"
											HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
										<asp:CompareValidator ID="ConfirmEmailTextBoxCompareValidator" runat="server"
											Display="None"
											ControlToCompare="EmailTextBox"
											ControlToValidate="ConfirmEmailTextBox"
											ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_Email_Confirm_Check %>"
											ValidationGroup="Basic"
											SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="ConfirmEmailTextBoxCompareValidatorCalloutExtender" runat="Server"
											TargetControlID="ConfirmEmailTextBoxCompareValidator"
											CssClass="VWebGlobal_Validatorcallout"
											Width="250px"
											HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
									</dd>

									<dt>
										<asp:Label ID="CommentLabel" runat="server"
											Text="<%$ Resources:CommentLabel %>"
											AssociatedControlID="CommentTextBox" />
									</dt>
									<dd>
										<asp:TextBox ID="CommentTextBox" runat="server"
											TextMode="MultiLine"
											Rows="5"
											Columns="50"
											CssClass="VWebGlobal_TextBox"
											ValidationGroup="Basic" />
									</dd>

									<dt></dt>
									<dd>
										<asp:Button ID="BasicModifyButton" runat="server"
											OnClick="BasicModifyButton_Click"
											Text="<%$ Resources:BasicModifyButton %>"
											ValidationGroup="Basic" />
									</dd>
								</dl>
							</asp:Panel>
						</Content>
					</ajaxToolkit:AccordionPane>
					<ajaxToolkit:AccordionPane runat="server">
						<Header><%= GetLocalResourceObject("PasswordPane").ToString()%></Header>
						<Content>
							<asp:Panel ID="PasswordModifyPanel" runat="server"
								DefaultButton="PasswordModifyButton">
								<dl class="VGlobal_FormFieldDL100">
									<dt>
										<asp:Label ID="CurrentPasswordLabel" runat="server"
											Text="<%$ Resources:CurrentPasswordLabel %>"
											AssociatedControlID="CurrentPasswordTextBox" />
									</dt>
									<dd>
										<asp:TextBox ID="CurrentPasswordTextBox" runat="server"
											TextMode="Password"
											Columns="30"
											MaxLength="100"
											CssClass="VWebGlobal_TextBox"
											ValidationGroup="Password" />
										<asp:RequiredFieldValidator ID="CurrentPasswordTextBoxRequiredFieldValidator" runat="server"
											Display="None"
											ControlToValidate="CurrentPasswordTextBox"
											ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_Password_Current_Insert %>"
											ValidationGroup="Password"
											SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="CurrentPasswordTextBoxRequiredFieldValidatorCalloutExtender" runat="Server"
											TargetControlID="CurrentPasswordTextBoxRequiredFieldValidator"
											CssClass="VWebGlobal_Validatorcallout"
											Width="250px"
											HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
									</dd>

									<dt>
										<asp:Label ID="NewPasswordLabel" runat="server"
											Text="<%$ Resources:NewPasswordLabel %>"
											AssociatedControlID="NewPasswordTextBox" />
									</dt>
									<dd>
										<asp:TextBox ID="NewPasswordTextBox" runat="server"
											TextMode="Password"
											Columns="30"
											MaxLength="100"
											CssClass="VWebGlobal_TextBox"
											ValidationGroup="Password" />
										<asp:RequiredFieldValidator ID="NewPasswordRequiredFieldValidator" runat="server"
											Display="None"
											ControlToValidate="NewPasswordTextBox"
											ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_Password_New_Insert %>"
											ValidationGroup="Password"
											SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="NewPasswordRequiredFieldValidatorCalloutExtender" runat="Server"
											TargetControlID="NewPasswordRequiredFieldValidator"
											CssClass="VWebGlobal_Validatorcallout"
											Width="250px"
											HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
									</dd>

									<dt>
										<asp:Label ID="ConfirmNewPasswordLabel" runat="server"
											Text="<%$ Resources:ConfirmNewPasswordLabel %>"
											AssociatedControlID="ConfirmNewPasswordTextBox" />
									</dt>
									<dd>
										<asp:TextBox ID="ConfirmNewPasswordTextBox" runat="server"
											TextMode="Password"
											Columns="30"
											MaxLength="25"
											CssClass="VWebGlobal_TextBox"
											ValidationGroup="Password" />
										<asp:RequiredFieldValidator ID="ConfirmNewPasswordRequiredFieldValidator" runat="server"
											Display="None"
											ControlToValidate="ConfirmNewPasswordTextBox"
											ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_Password_New_Confirm_Insert %>"
											ValidationGroup="Password"
											SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="ConfirmNewPasswordRequiredFieldValidatorCalloutExtender" runat="Server"
											TargetControlID="ConfirmNewPasswordRequiredFieldValidator"
											CssClass="VWebGlobal_Validatorcallout"
											Width="250px"
											HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
										<asp:CompareValidator ID="NewPasswordCompareValidator" runat="server"
											Display="None"
											ControlToCompare="NewPasswordTextBox"
											ControlToValidate="ConfirmNewPasswordTextBox"
											ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_Password_New_Confirm_Check %>"
											ValidationGroup="Password"
											SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="NewPasswordCompareValidatorCalloutExtender" runat="Server"
											TargetControlID="NewPasswordCompareValidator"
											CssClass="VWebGlobal_Validatorcallout"
											Width="250px"
											HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
									</dd>

									<dt></dt>
									<dd>
										<asp:Button ID="PasswordModifyButton" runat="server"
											Text="<%$ Resources:PasswordModifyButton %>"
											OnClick="PasswordModifyButton_Click"
											ValidationGroup="Password" />
									</dd>
								</dl>
							</asp:Panel>
						</Content>
					</ajaxToolkit:AccordionPane>
					<ajaxToolkit:AccordionPane runat="server">
						<Header><%= GetLocalResourceObject("SecurityQAPane").ToString()%></Header>
						<Content>
							<asp:Panel ID="SecurityQAModifyPanel" runat="server"
								DefaultButton="SecurityQAModifyButton">
								<div class="Content"><%= GetLocalResourceObject("SecurityQAContent").ToString()%></div>

								<dl class="VGlobal_FormFieldDL100">
									<dt>
										<asp:Label ID="CurrentPasswordLabel2" runat="server"
											Text="<%$ Resources:CurrentPasswordLabel %>"
											AssociatedControlID="CurrentPasswordTextBox2" />
									</dt>
									<dd>
										<asp:TextBox ID="CurrentPasswordTextBox2" runat="server"
											TextMode="Password"
											Columns="30"
											MaxLength="100"
											CssClass="VWebGlobal_TextBox"
											ValidationGroup="SecurityQA" />
										<asp:RequiredFieldValidator ID="CurrentPasswordRequiredFieldValidator" runat="server"
											Display="None"
											ControlToValidate="CurrentPasswordTextBox2"
											ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_Password_Current_Insert %>"
											ValidationGroup="SecurityQA"
											SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="CurrentPasswordRequiredFieldValidatorCalloutExtender" runat="Server"
											TargetControlID="CurrentPasswordRequiredFieldValidator"
											CssClass="VWebGlobal_Validatorcallout"
											Width="250px"
											HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
									</dd>

									<dt>
										<asp:Label ID="QuestionLabel" runat="server"
											Text="<%$ Resources:QuestionLabel %>"
											AssociatedControlID="QuestionDropDownList" />
									</dt>
									<dd>
										<asp:DropDownList ID="QuestionDropDownList" runat="server"
											CssClass="VWebGlobal_TextBox"
											ValidationGroup="SecurityQA" />
									</dd>

									<dt>
										<asp:Label ID="AnswerLabel" runat="server"
											Text="<%$ Resources:NewAnswerLabel %>"
											AssociatedControlID="NewAnswerTextBox" />
									</dt>
									<dd>
										<asp:TextBox ID="NewAnswerTextBox" runat="server"
											Columns="30"
											MaxLength="100"
											CssClass="VWebGlobal_TextBox"
											ValidationGroup="SecurityQA" />
										<asp:RequiredFieldValidator ID="AnswerRequiredFieldValidator" runat="server"
											Display="None"
											ControlToValidate="NewAnswerTextBox"
											ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_SecurityAnswer_New_Insert %>"
											ValidationGroup="SecurityQA"
											SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="AnswerRequiredFieldValidatorCalloutExtender" runat="Server"
											TargetControlID="AnswerRequiredFieldValidator"
											CssClass="VWebGlobal_Validatorcallout"
											Width="250px"
											HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
									</dd>

									<dt></dt>
									<dd>
										<asp:Button ID="SecurityQAModifyButton" runat="server"
											Text="<%$ Resources:SecurityQAModifyButton %>"
											onclick="SecurityQAModifyButton_Click"
											ValidationGroup="SecurityQA" />
									</dd>
								</dl>
							</asp:Panel>
						</Content>
					</ajaxToolkit:AccordionPane>
				</Panes>            
			</ajaxToolkit:Accordion>
		</asp:Panel>
	</div>

</asp:Content>

